<script setup lang="ts">
import { getRandomNumber } from '@renderer/tools/index'
import CatImage from '@renderer/components/CatImage.vue'

function getImgSrc() {
  const number = getRandomNumber(1, 7)
  const url = `https://activity.hdslb.com/zzjs/cartoon/errorPage-manga-${number}.png`
  return url
}
</script>

<template>
  <div class="home-page">
    <CatImage :src="getImgSrc()" />
  </div>
</template>

<style lang="less" scoped>
.home-page {
  width: 100%;
  img {
    width: 100%;
  }
}
</style>
